home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / System 7 / Frontier / Frontier SDK 2.1.sit / Frontier SDK 2.1 / Toolkits / IAC Tools / iacshort.c < prev    next >
MacBinary  |  1993-06-09  |  2.3 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Wed Jun 9 15:20:23 1993, modified Wed Jun 9 15:20:23 1993, creator Think C, type ASCII, 1602 bytes "iacshort.c" , at 0x6c2 402 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 69 61 63 73 68 6f | 72 74 2e 63 00 00 00 00 |..iacsho|rt.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 06 42 00 | 00 01 92 a8 3b e8 77 a8 |......B.|....;.w.|
|00000060| 3b e8 77 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.w.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e1 de 00 00 |........|........|
|00000080| 0d 2f 2a a9 20 43 6f 70 | 79 72 69 67 68 74 20 31 |./*. Cop|yright 1|
|00000090| 39 38 38 2d 31 39 39 33 | 20 55 73 65 72 4c 61 6e |988-1993| UserLan|
|000000a0| 64 20 53 6f 66 74 77 61 | 72 65 2c 20 49 6e 63 2e |d Softwa|re, Inc.|
|000000b0| 20 20 41 6c 6c 20 52 69 | 67 68 74 73 20 52 65 73 | All Ri|ghts Res|
|000000c0| 65 72 76 65 64 2e 2a 2f | 0d 0d 23 69 6e 63 6c 75 |erved.*/|..#inclu|
|000000d0| 64 65 20 22 69 61 63 69 | 6e 74 65 72 6e 61 6c 2e |de "iaci|nternal.|
|000000e0| 68 22 0d 0d 0d 42 6f 6f | 6c 65 61 6e 20 49 41 43 |h"...Boo|lean IAC|
|000000f0| 70 75 73 68 73 68 6f 72 | 74 70 61 72 61 6d 20 28 |pushshor|tparam (|
|00000100| 73 68 6f 72 74 20 76 61 | 6c 2c 20 4f 53 54 79 70 |short va|l, OSTyp|
|00000110| 65 20 6b 65 79 77 6f 72 | 64 29 20 7b 0d 09 0d 09 |e keywor|d) {....|
|00000120| 72 65 74 75 72 6e 20 28 | 49 41 43 70 75 73 68 73 |return (|IACpushs|
|00000130| 68 6f 72 74 69 74 65 6d | 20 28 49 41 43 67 6c 6f |hortitem| (IACglo|
|00000140| 62 61 6c 73 2e 65 76 65 | 6e 74 2c 20 76 61 6c 2c |bals.eve|nt, val,|
|00000150| 20 6b 65 79 77 6f 72 64 | 29 29 3b 0d 09 7d 20 2f | keyword|));..} /|
|00000160| 2a 49 41 43 70 75 73 68 | 73 68 6f 72 74 70 61 72 |*IACpush|shortpar|
|00000170| 61 6d 2a 2f 0d 0d 0d 42 | 6f 6f 6c 65 61 6e 20 49 |am*/...B|oolean I|
|00000180| 41 43 72 65 74 75 72 6e | 73 68 6f 72 74 20 28 73 |ACreturn|short (s|
|00000190| 68 6f 72 74 20 78 29 20 | 7b 0d 09 0d 09 72 65 74 |hort x) |{....ret|
|000001a0| 75 72 6e 20 28 49 41 43 | 70 75 73 68 73 68 6f 72 |urn (IAC|pushshor|
|000001b0| 74 69 74 65 6d 20 28 49 | 41 43 67 6c 6f 62 61 6c |titem (I|ACglobal|
|000001c0| 73 2e 72 65 70 6c 79 2c | 20 78 2c 20 6b 65 79 44 |s.reply,| x, keyD|
|000001d0| 69 72 65 63 74 4f 62 6a | 65 63 74 29 29 3b 0d 09 |irectObj|ect));..|
|000001e0| 7d 20 2f 2a 49 41 43 72 | 65 74 75 72 6e 73 68 6f |} /*IACr|eturnsho|
|000001f0| 72 74 2a 2f 0d 0d 0d 42 | 6f 6f 6c 65 61 6e 20 49 |rt*/...B|oolean I|
|00000200| 41 43 67 65 74 73 68 6f | 72 74 70 61 72 61 6d 20 |ACgetsho|rtparam |
|00000210| 28 4f 53 54 79 70 65 20 | 6b 65 79 77 6f 72 64 2c |(OSType |keyword,|
|00000220| 20 73 68 6f 72 74 20 2a | 76 61 6c 29 20 7b 0d 09 | short *|val) {..|
|00000230| 0d 09 69 66 20 28 21 49 | 41 43 67 65 74 73 68 6f |..if (!I|ACgetsho|
|00000240| 72 74 69 74 65 6d 20 28 | 49 41 43 67 6c 6f 62 61 |rtitem (|IACgloba|
|00000250| 6c 73 2e 65 76 65 6e 74 | 2c 20 6b 65 79 77 6f 72 |ls.event|, keywor|
|00000260| 64 2c 20 76 61 6c 29 29 | 20 7b 0d 09 09 49 41 43 |d, val))| {...IAC|
|00000270| 70 61 72 61 6d 65 72 72 | 6f 72 20 28 49 41 43 67 |paramerr|or (IACg|
|00000280| 6c 6f 62 61 6c 73 2e 65 | 72 72 6f 72 63 6f 64 65 |lobals.e|rrorcode|
|00000290| 2c 20 22 5c 70 73 68 6f | 72 74 22 2c 20 6b 65 79 |, "\psho|rt", key|
|000002a0| 77 6f 72 64 29 3b 0d 09 | 09 0d 09 09 72 65 74 75 |word);..|....retu|
|000002b0| 72 6e 20 28 66 61 6c 73 | 65 29 3b 0d 09 09 7d 0d |rn (fals|e);...}.|
|000002c0| 09 0d 09 49 41 43 67 6c | 6f 62 61 6c 73 2e 6e 65 |...IACgl|obals.ne|
|000002d0| 78 74 70 61 72 61 6d 6f | 70 74 69 6f 6e 61 6c 20 |xtparamo|ptional |
|000002e0| 3d 20 66 61 6c 73 65 3b | 20 2f 2a 6d 75 73 74 20 |= false;| /*must |
|000002f0| 62 65 20 72 65 73 65 74 | 20 66 6f 72 20 65 61 63 |be reset| for eac|
|00000300| 68 20 70 61 72 61 6d 2a | 2f 0d 09 0d 09 72 65 74 |h param*|/....ret|
|00000310| 75 72 6e 20 28 74 72 75 | 65 29 3b 0d 09 7d 20 2f |urn (tru|e);..} /|
|00000320| 2a 49 41 43 67 65 74 73 | 68 6f 72 74 70 61 72 61 |*IACgets|hortpara|
|00000330| 6d 2a 2f 0d 09 0d 09 0d | 42 6f 6f 6c 65 61 6e 20 |m*/.....|Boolean |
|00000340| 49 41 43 67 65 74 73 68 | 6f 72 74 69 74 65 6d 20 |IACgetsh|ortitem |
|00000350| 28 41 45 44 65 73 63 4c | 69 73 74 20 2a 6c 69 73 |(AEDescL|ist *lis|
|00000360| 74 2c 20 6c 6f 6e 67 20 | 6e 2c 20 73 68 6f 72 74 |t, long |n, short|
|00000370| 20 2a 76 61 6c 29 20 7b | 0d 09 0d 09 72 65 67 69 | *val) {|....regi|
|00000380| 73 74 65 72 20 4f 53 45 | 72 72 20 65 63 3b 0d 09 |ster OSE|rr ec;..|
|00000390| 44 65 73 63 54 79 70 65 | 20 6b 65 79 3b 0d 09 44 |DescType| key;..D|
|000003a0| 65 73 63 54 79 70 65 20 | 74 79 70 65 43 6f 64 65 |escType |typeCode|
|000003b0| 3b 0d 09 53 69 7a 65 20 | 61 63 74 75 61 6c 53 69 |;..Size |actualSi|
|000003c0| 7a 65 3b 0d 09 0d 09 69 | 66 20 28 28 2a 6c 69 73 |ze;....i|f ((*lis|
|000003d0| 74 29 2e 64 65 73 63 72 | 69 70 74 6f 72 54 79 70 |t).descr|iptorTyp|
|000003e0| 65 20 21 3d 20 74 79 70 | 65 41 45 4c 69 73 74 29 |e != typ|eAEList)|
|000003f0| 20 7b 0d 09 0d 09 09 65 | 63 20 3d 20 41 45 47 65 | {.....e|c = AEGe|
|00000400| 74 4b 65 79 50 74 72 20 | 28 6c 69 73 74 2c 20 6e |tKeyPtr |(list, n|
|00000410| 2c 20 74 79 70 65 53 68 | 6f 72 74 49 6e 74 65 67 |, typeSh|ortInteg|
|00000420| 65 72 2c 20 26 74 79 70 | 65 43 6f 64 65 2c 20 28 |er, &typ|eCode, (|
|00000430| 50 74 72 29 76 61 6c 2c | 0d 09 09 09 09 09 09 20 |Ptr)val,|....... |
|00000440| 20 73 69 7a 65 6f 66 20 | 28 2a 76 61 6c 29 2c 20 | sizeof |(*val), |
|00000450| 26 61 63 74 75 61 6c 53 | 69 7a 65 29 3b 0d 09 09 |&actualS|ize);...|
|00000460| 09 09 09 09 20 20 0d 09 | 09 69 66 20 28 65 63 20 |.... ..|.if (ec |
|00000470| 21 3d 20 65 72 72 41 45 | 44 65 73 63 4e 6f 74 46 |!= errAE|DescNotF|
|00000480| 6f 75 6e 64 29 0d 09 09 | 09 67 6f 74 6f 20 64 6f |ound)...|.goto do|
|00000490| 6e 65 3b 0d 09 09 7d 0d | 0d 09 65 63 20 3d 20 41 |ne;...}.|..ec = A|
|000004a0| 45 47 65 74 4e 74 68 50 | 74 72 20 28 6c 69 73 74 |EGetNthP|tr (list|
|000004b0| 2c 20 6e 2c 20 74 79 70 | 65 53 68 6f 72 74 49 6e |, n, typ|eShortIn|
|000004c0| 74 65 67 65 72 2c 20 26 | 6b 65 79 2c 20 26 74 79 |teger, &|key, &ty|
|000004d0| 70 65 43 6f 64 65 2c 20 | 28 50 74 72 29 20 76 61 |peCode, |(Ptr) va|
|000004e0| 6c 2c 20 73 69 7a 65 6f | 66 20 28 2a 76 61 6c 29 |l, sizeo|f (*val)|
|000004f0| 2c 20 26 61 63 74 75 61 | 6c 53 69 7a 65 29 3b 0d |, &actua|lSize);.|
|00000500| 09 0d 09 64 6f 6e 65 3a | 0d 09 0d 09 49 41 43 67 |...done:|....IACg|
|00000510| 6c 6f 62 61 6c 73 2e 65 | 72 72 6f 72 63 6f 64 65 |lobals.e|rrorcode|
|00000520| 20 3d 20 65 63 3b 0d 09 | 0d 09 72 65 74 75 72 6e | = ec;..|..return|
|00000530| 20 28 65 63 20 3d 3d 20 | 6e 6f 45 72 72 29 3b 0d | (ec == |noErr);.|
|00000540| 09 7d 20 2f 2a 49 41 43 | 67 65 74 73 68 6f 72 74 |.} /*IAC|getshort|
|00000550| 69 74 65 6d 2a 2f 0d 0d | 0d 42 6f 6f 6c 65 61 6e |item*/..|.Boolean|
|00000560| 20 49 41 43 70 75 73 68 | 73 68 6f 72 74 69 74 65 | IACpush|shortite|
|00000570| 6d 20 28 41 45 44 65 73 | 63 4c 69 73 74 20 2a 6c |m (AEDes|cList *l|
|00000580| 69 73 74 2c 20 73 68 6f | 72 74 20 76 61 6c 2c 20 |ist, sho|rt val, |
|00000590| 6c 6f 6e 67 20 6e 29 20 | 7b 0d 09 0d 09 72 65 67 |long n) |{....reg|
|000005a0| 69 73 74 65 72 20 4f 53 | 45 72 72 20 65 63 3b 0d |ister OS|Err ec;.|
|000005b0| 0d 09 69 66 20 28 28 2a | 6c 69 73 74 29 2e 64 65 |..if ((*|list).de|
|000005c0| 73 63 72 69 70 74 6f 72 | 54 79 70 65 20 21 3d 20 |scriptor|Type != |
|000005d0| 74 79 70 65 41 45 4c 69 | 73 74 29 0d 09 09 65 63 |typeAELi|st)...ec|
|000005e0| 20 3d 20 41 45 50 75 74 | 4b 65 79 50 74 72 20 28 | = AEPut|KeyPtr (|
|000005f0| 6c 69 73 74 2c 20 6e 2c | 20 74 79 70 65 53 68 6f |list, n,| typeSho|
|00000600| 72 74 49 6e 74 65 67 65 | 72 2c 20 28 50 74 72 29 |rtIntege|r, (Ptr)|
|00000610| 26 76 61 6c 2c 20 73 69 | 7a 65 6f 66 20 28 76 61 |&val, si|zeof (va|
|00000620| 6c 29 29 3b 0d 09 65 6c | 73 65 0d 09 09 65 63 20 |l));..el|se...ec |
|00000630| 3d 20 41 45 50 75 74 50 | 74 72 20 28 6c 69 73 74 |= AEPutP|tr (list|
|00000640| 2c 20 6e 2c 20 74 79 70 | 65 53 68 6f 72 74 49 6e |, n, typ|eShortIn|
|00000650| 74 65 67 65 72 2c 20 28 | 50 74 72 29 26 76 61 6c |teger, (|Ptr)&val|
|00000660| 2c 20 73 69 7a 65 6f 66 | 20 28 76 61 6c 29 29 3b |, sizeof| (val));|
|00000670| 0d 09 0d 09 49 41 43 67 | 6c 6f 62 61 6c 73 2e 65 |....IACg|lobals.e|
|00000680| 72 72 6f 72 63 6f 64 65 | 20 3d 20 65 63 3b 0d 09 |rrorcode| = ec;..|
|00000690| 0d 09 72 65 74 75 72 6e | 20 28 65 63 20 3d 3d 20 |..return| (ec == |
|000006a0| 6e 6f 45 72 72 29 3b 0d | 09 7d 20 2f 2a 49 41 43 |noErr);.|.} /*IAC|
|000006b0| 70 75 73 68 73 68 6f 72 | 74 69 74 65 6d 2a 2f 0d |pushshor|titem*/.|
|000006c0| 0d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 46 |.......L|...L...F|
|00000710| 61 63 6c 6b 64 66 69 6c | 04 00 00 00 00 00 00 00 |aclkdfil|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 0a 69 61 63 73 68 6f 72 | 74 2e 63 01 02 00 00 00 |.iacshor|t.c.....|
|00000740| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........|
|00000750| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 a9 81 44 d7 00 00 | 00 00 00 00 01 92 00 00 |....D...|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 c3 25 02 41 4f |........|....%.AO|
|00000790| 71 63 ff ff 00 00 00 00 | 00 00 00 00 00 00 00 00 |qc......|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 80 25 02 | 43 6c 72 48 ff ff 00 00 |......%.|ClrH....|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 e9 |........|........|
|000007e0| 25 02 44 52 50 62 ff f2 | 00 00 00 00 00 00 00 00 |%.DRPb..|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 06 | 00 04 00 4c 00 10 01 d6 |........|...L....|
|00000830| 02 40 00 4c 00 10 01 d6 | 02 40 a8 21 b6 b5 00 00 |.@.L....|.@.!....|
|00000840| 01 b1 00 00 02 42 00 00 | 00 64 01 00 00 00 01 00 |.....B..|.d......|
|00000850| 00 00 01 4c 00 00 00 4c | 00 00 00 46 00 c5 8a 58 |...L...L|...F...X|
|00000860| 17 e0 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000870| 00 0a 03 ed 00 00 00 00 | 00 00 00 c5 88 e4 13 43 |........|.......C|
|00000880| 72 65 61 74 65 64 20 62 | 79 20 43 4d 61 73 74 65 |reated b|y CMaste|
|00000890| 72 aa 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |r.......|........|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+